<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="renderer" content="webkit">
		<link href="css/bootstrap.min.css" rel="stylesheet">
		<link rel="stylesheet" href="js/jquery-easyui-1.4.4/themes/bootstrap/easyui.css">
		<link rel="stylesheet" href="js/jquery-easyui-1.4.4/themes/icon.css">
		<link rel="stylesheet" href="css/ext_icon.css">
		<script src="js/jquery-easyui-1.4.4/jquery.min.js"></script>
		<script src="js/bootstrap.min.js"></script>
		<script src="js/jquery-easyui-1.4.4/jquery.easyui.min.js"></script>
		<script src="js/jquery-easyui-1.4.4/locale/easyui-lang-zh_CN.js"></script>
		<script src="js/ext_jquery.js"></script>
		<script src="js/ext_easyui.js"></script>
		<script src="js/jquery.form.js"></script>
		<script src="js/My97DatePicker/WdatePicker.js"></script>
		<script src="js/Chart.min.js"></script>
		<script src="js/util.js"></script>
		<script src="js/ckeditor/ckeditor.js"></script>
		<link rel="stylesheet" href="css/style.css">
		<script src="js/main.js"></script>
		<title>mform</title>
		<script>
			$(function() {
				var submitForm = $('.form-table');
				var options = {
					dataType: 'json',
					beforeSubmit: function() {
						parent.$.messager.progress({
							title: '提示',
							text: '数据保存中，请稍后....'
						});
						return true;
					},
					success: function(result) {
						parent.$.messager.progress('close');
						if (result.success) {
							parent.$.messager.show({
								title: '提示',
								msg: '成功!',
								timeout: 3000
							});
							parent.$.modalDialog.openner_dataGrid.datagrid('reload'); //刷新表格
							parent.$.modalDialog.handler.dialog('close'); //removeTabs();
						} else {
							parent.$.messager.alert('错误', result.msg, 'error');
						}
					}
				};
				submitForm.bind('submit', function(e) {
					e.preventDefault(); // <-- important
					$(this).ajaxSubmit(options);
				});
			});
		</script>
	</head>

	<body>mform
	</body>

</html>